package com.xwh.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xwh.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author xwh
 **/
@Getter
@Setter
@Entity
@Table
public class Software extends BaseEntity implements Serializable {

    static final long serialVersionUID = 1L;

    @Id
    @TableId(type = IdType.ASSIGN_ID)
    @Column(length = 20)
    String softwareId;

    @Column(length = 200)
    @Schema(name = "软件名称")
    String softwareName;

    @Column(length = 50)
    @Schema(name = "软件类型")
    String softwareTypeId;

    @Column(length = 500)
    @Schema(name = "软件简述")
    String softwareDescription;

    @Column(length = 300)
    @Schema(name = "软件图片")
    String softwareImage;

    @Schema(name = "软件详情")
    @Lob
    String softwareDetails;

    @Schema(name = "软件状态")
    @Column(length = 1)
    Boolean softwareStatus;

}
